package com.lifeibiao.作业0214;

public class ColaEmployee {
    private String emName;//姓名
    private int emBirthday;//生日年份
    public double getSalary(int month){
        double mySalary = 0.0;
        if (this.emBirthday==month){
            mySalary += 100;
        }
        return mySalary;
    }

    //自定义构造方法
    public ColaEmployee(String emName, int emBirthday) {
        this.emName = emName;
        this.emBirthday = emBirthday;
    }

    public ColaEmployee() {

    }

    public String getEmName() {
        return emName;
    }

    public void setEmName(String emName) {
        this.emName = emName;
    }

    public int getEmBirthday() {
        return emBirthday;
    }

    public void setEmBirthday(int emBirthday) {
        this.emBirthday = emBirthday;
    }
}
